<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ObjectDefineProperty--计算器案例</title>
    <style>
        .J_calculator {
            margin: 50px 100px;
        }

        .result {
            font-size: 14px;
            margin-bottom: 10px;
            text-indent: 10px;
        }

        .J_calculator input {
            height: 28px;
            line-height: 28px;
            border: 1px solid #eee;
            text-indent: 10px;
            margin-bottom: 10px;
            outline: none;
            border-radius: 3px;
        }

        .btn-group button {
            height: 28px;
            line-height: 28px;
            width: 28px;
            border: 1px solid #eee;
            border-radius: 3px;
            outline: none;
        }

        .current {
            background: orange;
            color: #fff;
        }
    </style>
</head>

<body>
    <div class="J_calculator">
        <div class="result"></div>
        <div><input type="text" class="f-input" /></div>
        <div><input type="text" class="s-input" /></div>
        <div class="btn-group">
            <button data-field="plus" class="current">+</button>
            <button data-field="minus">-</button>
            <button data-field="mul">*</button>
            <button data-field="div">/</button>
        </div>
    </div>
    <script src="../common/js/utils.js"></script>
    <script src="js/compute.js"></script>
</body>

</html>